
var combhttpproxy = new Ext.data.HttpProxy({
	url : combproxyUrl,
	method : "GET"
})

var combstorereader = new Ext.data.JsonReader({
	root : "Glossary"
}, [{
	name : "value",
	mapping : "glossaryid"
}, {
	name : "text",
	mapping : "glossaryname"
}])

var combstore = new Ext.data.Store({
	proxy : combhttpproxy,
	reader : combstorereader,
	baseParams : {proxyParams : combproxyParams},
	autoLoad : true
})

var comboxWithList = new Ext.form.ComboBox({
	disabled : combdisabled,
	editable : combeditable,
	emptyText : emptyText,
	blankText : blankText,
	loadingText : loadingText,
	store : combstore,
	valueField : "value",
	displayField : "text",
	typeAhead : true,
	lazyInit : false,
	lazyRender : false,
	forceSelection : true,
	selectOnFocus : true,
	triggerAction : triggerAction,
	mode : combmode
});

Ext.onReady(function() {
	if (ready) {
		if (diaplayType == "List") {
			comboxWithList.id = id;
			
			comboxWithList.render('comboxWith');
		}
	}
});

comboxWithList.on("select", function() {
		
		if (onSelect != "") {
		eval(onSelect);
	    }
	
});